// 取出来调用后端接口的地址
import { API_CONFIG } from "../config/index.js";
import request from "../api/index.js";
// 在很多位置，都可能用到同一个接口
export const getDaemonSetListHandler = (clusterId, namespace) => {
    return request(API_CONFIG.getDaemonSetListApi, {clusterId, namespace}, "get", "2000")
}

export const deleteDaemonSetHandler = (clusterId, namespace, name) => {
    return request(API_CONFIG.deleteDaemonSetApi, {clusterId, namespace, name}, "post", "2000")
}
// 
export const createDaemonSetHandler = (data) => {
    return request(API_CONFIG.createDaemonSetApi, data, "post", "2000")
}

export const updateDaemonSetHandler = (data) => {
    return request(API_CONFIG.updateDaemonSetApi, data, "post", "2000")
}

export const getDaemonSetDetailHandler = (data) => {
    return request(API_CONFIG.getDaemonSetApi, data, "get", "2000")
}


